package com.pb.news.service.impl;

import java.util.ArrayList;
import java.util.List;

import com.pb.news.entity.News;
import com.pb.news.service.NewsService;

public class NewsServiceTest {
	public static void main(String[] args) {
		NewsService newsService = new NewsServiceImpl();
		//System.out.println("newsCount--->" + newsService.getNewsCount());
		List<News> newsList = new ArrayList<News>();
		newsList = newsService.getPagesNewsList(2, 2);
		for(News news : newsList){
			System.out.println("newsPages---->" + news.getTitle());
		}
	}
}
